package ace.module.mail.address.core.impl.controller.rest.rpc;

import ace.cmp.rest.spring.data.jdbc.querydsl.core.controller.sdk.AbstractSdkRestController;
import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsInternalClient;
import ace.module.common.api.annotation.ApiRemoteImplementPriority;
import ace.module.mail.address.api.MadMailAddressApi;
import ace.module.mail.address.api.model.dto.MadMailAddressDto;
import ace.module.mail.address.core.impl.dao.entity.MadMailAddress;
import ace.module.mail.address.sdk.core.feign.impl.MadMailAddressFeign;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 邮寄地址 rpc controller.
 *
 * @author Caspar
 */
@Tag(name = "邮寄地址-RPC-API")
@PreAuthorizeIsInternalClient
@ApiRemoteImplementPriority
@AllArgsConstructor
@RestController
@RequestMapping(MadMailAddressFeign.PATH)
public class MadMailAddressRpcController
    extends AbstractSdkRestController<MadMailAddress, Long, MadMailAddressDto>
    implements MadMailAddressFeign {

  @Delegate
  private final MadMailAddressApi madMailAddressApi;
}